<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
	//test push
	String cookieName = "AirportUser";
	Cookie cookies[] = request.getCookies();
	String username = null;
	if (cookies != null) {
		for (int i = 0; i < cookies.length; i++) {
			if (cookies[i].getName().equals(cookieName)) {
				username = cookies[i].getValue();
				break;
			}
		}
	}
%>
	<title>Airport Traveler App | CSE 5911 Project AU12</title>
 <!--[if IE]>
	<link rel="stylesheet" type="text/css" href="ie.css" />
	
<![endif]-->
	

<link rel="stylesheet" media="screen and (min-device-width: 800px)" href="full_style.css" />
<link rel='stylesheet' media='screen and (min-width: 300px) and (max-width: 799px)' href='mobile_style.css' />
<html>
	<center>
  
<header> 
<![if ! IE]>

<table width="100%">
		<tr>
		<td width="35%"><a href="<s:url action = "index"/>"><img width="100%" src="images/logo.png" border="0"></a></td>

		<td width="65%"><p align="right">
		<table><tr>
		<td><a href="<s:url action="flightTimes"/>"><img width="100%" src="images/flight_times.png" border="0"></a><br><a href="<s:url action="terminalMap"/>"><img width="100%" src="images/terminal_maps.png" border="0"></a></td>
		
		</tr></table>
		</p>
		</td>
		</tr>

		<tr><td valign="top">
		<% if (username != null) { %>
		Hello, <a href="<s:url action="viewprofile"/>"><s:property value="username"/></a> ! 
		<%;} else { %>
		You are not logged in. <a href="signup.jsp">Log in.</a> | <a href="signup.jsp">Click Here to Signup!</a>
		<%;} %>
		</td><td align="right">
	
		 <%if (username != null) { %> <a href="logout">Logout</a> <%; } %>
		</tr></td></table> 
		</p>
<![endif]>

 <!--[if IE]>
		<table width="100%" style="background-color: #80B2FF;">
		<tr>
		<td width="35%"><a href="<s:url action = "index"/>"><img src="images/logo.png" border="0"></a></td>

		<td width="65%"><p align="right">
		<table><tr>
		<td><a href="flight_times.jsp"><img src="images/flight_times.png" border="0"></a><br><a href="terminal_maps.jsp"><img src="images/terminal_maps.png" border="0"></a></td>
		
		</tr></table>
		</p>
		</td>
		</tr>

		<tr><td valign="top">
		<% if (username != null) { %>
		Hello, <a href="<s:url action="viewprofile"/>"><s:property value="username"/></a> ! 
		<%;} else { %>
		You are not logged in. <a href="signup.jsp">Log in.</a> | <a href="signup.jsp">Click Here to Signup!</a>
		<%;} %>
		</td><td align="right">
	
		 <%if (username != null) { %> <a href="logout">Logout</a> <%; } %>
		</tr></td></table> 
		</p>

		
<![endif]-->
    
		
		
	</header>	


	<div>
        User Guides:<br>
        <table width="300"><tr><td>
        <ul><li><a href="#" onClick="MyWindow=window.open('howtosignup.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=500,height=300'); return false;">How to Sign Up</a></li>
        <li><a href="#" onClick="MyWindow=window.open('howtologin.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=500,height=300'); return false;">How to Log In</a></li>
        <li><a href="#" onClick="MyWindow=window.open('howtopostathread.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=500,height=300'); return false;">How to Post a Thread</a></li>
        <li><a href="#" onClick="MyWindow=window.open('howtoviewathread.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=500,height=300'); return false;">How to View a Thread</a></li>
        <li><a href="#" onClick="MyWindow=window.open('howtoreplytoaprivatemessage.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=500,height=300'); return false;">How to Reply to a Private Message</a></li>
        <li><a href="#" onClick="MyWindow=window.open('howtoviewaprivatemessage.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=500,height=300'); return false;">How to View a Private Message</a></li>
        </ul>
        </td></tr></table><p>
        Site Map:<br>
        <table width="500"><tr><td>
        <ul>
  <li><a href="welcome.jsp">Forum</a>
  	<ol><li>User Funnctions</li>
  		<ul>
  		<li><a href="#">Inbox</a>
  			<ol><li><a href="#">New Private Message</a></li></ol>
  			</li>
           <li>Threads
			<ol><li><a href="#">Post New Thread</a></li>
			<li><a href="#">View Thread</a></li>
			<li><a href="#">Reply Thread</a></li></ol>
			</li>
  		<li><a href="signup.jsp">Log In</a></li>
  		<li><a href="signup.jsp">Sign Up</a></li>
  		<li><a href="#">Profile</a>
  			<ol><li><a href="#">Change Image</a></li>
  			<li><a href="#">Change Email</a></li>
  			<li><a href="#">Change Password</a></li></ol>
  			</li></ul>
  		</ol></li>
  <li><a href="flight_times.jsp">Flight Times</a></li>
  <li><a href="terminal_maps.jsp">Terminal Maps</a></li>
</ul>
        </td></tr></table>
	</div>
	
<footer>
	<font size="1">
	<a href="user_guide.jsp">Help</a>| Copyright 2012
	</font>
	
	</footer>
	</center>
</html>